<?php
	include_once "online_db.php";
	
	class online_bs
	{
		//--------------Field---------------
		private $SIDOnline = "";
		public function SetSIDOnline($SIDOnline)  { $this->SIDOnline = $SIDOnline; }
		public function GetSIDOnline()            { return $this->SIDOnline;       }
		
		private $TimeOut = -1; 
		public function SetTimeOut($TimeOut)      { $this->TimeOut = $TimeOut;     }
		public function GetTimeOut()              { return $this->TimeOut;         }
		
		//--------------Method---------------
		public function Them()
		{
			$db = new online_db();
			return $db->Them($this->SIDOnline, $this->TimeOut);
		}
		
		public function Count()
		{
			$db = new online_db();
			return $db->Count();
		}
		
		public function CapNhat()
		{
			$db = new online_db();
			return $db->CapNhat($this->SIDOnline, $this->TimeOut);
		}
		
		public function Xoa()
		{
			$db = new online_db();
			return $db->Xoa();
		}
		
		public function Check()
		{
			$db = new online_db();
			return $db->Check($this->SIDOnline);
		}
	}
?>